x86: irq ratelimit
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Sep 2009 08:16:38 +0000 (09:16 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Sep 2009 08:16:38 +0000 (09:16 +0100)
commit74ebd6f95915e07912b36f07e37c84d095ec57c4
tree13629326dc2799e8d1d07a05cf3a5c0fbfeda97c
parent91cb4623df8f88695cdfcaaf6f90a2a93a1a62a9
x86: irq ratelimit

This patch adds the feature of irq ratelimit. It temporarily masks
the interrupt (guest) if too many irqs are observed in a short
period (irq storm), to ensure responsiveness of Xen and other guests.

As for now, the threshold can be adjusted at boot time using command-
line option irq_ratelimit=xxx.

Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/irq.c
xen/include/xen/irq.h